package user;

import operatation.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-03-23
 * Time: 20:18
 */
public class AdminUser extends User {
    public AdminUser (String name) {
        super(name);
        this.iOperatations = new IOperatation[] {
                new Exist(),
                new Find(),
                new Add(),
                new Delete(),
                new Show()
        };
    }

    @Override
    public void menu() {
        System.out.println("管理员菜单");
        System.out.println("*****************");
        System.out.println("Hello "+this.name+" 欢迎来到图书馆");
        System.out.println("1. 查找");
        System.out.println("2. 新增");
        System.out.println("3. 删除");
        System.out.println("4. 显示");
        System.out.println("0. 退出");
    }
}
